//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.rjxy.demo.server.impl;

import com.rjxy.demo.mapper.UsersMapper;
import com.rjxy.demo.pojo.Users;
import com.rjxy.demo.server.UsersServer;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsersServerImpl implements UsersServer {
    @Autowired
    private UsersMapper usersMapper;

    public UsersServerImpl() {
    }

    public List<Users> findAll() {
        return this.usersMapper.selectAll();
    }

    public Users login(Users users) {
        return this.usersMapper.selectByUnameAndUpwd(users);
    }

    public int register(Users users) {
        return this.usersMapper.insertUser(users);
    }
}
